layui.use('layer', function(){
    var layer = layui.layer;


    let oButton = document.querySelector('.button input')
    let oPassword = document.querySelector('.password input')
    let oPhone = document.querySelector('.phone_p1 input')
    oButton.addEventListener("click",async()=>{
        // 选中表单中的文件
        const file = document.querySelector('input[type=file]').files[0]
        console.log(file);
        // 创建FormData
        const formData = new FormData()
        formData.append('file', file)

        // 发送POST请求
        axios.post('/upload', formData).then(res => {
            console.log('上传成功')
        })
    })






    
  });